#define layout()
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<link rel="stylesheet" href="/wx/css/cityselect.css">
		<link rel="stylesheet" type="text/css" href="/wx/css/frozen.css">
		<link rel="stylesheet" type="text/css" href="/wx/css/index.css">
		<link href="/wx/bn/css/city-picker.css" rel="stylesheet" type="text/css" />
		<script src="/wx/js/jquery.min.js"></script>
		<title>#(USER.nickName??"用户查单")</title>
		<style type="text/css">
			.w3000 {
				margin-right: 50px;
			}
		</style>
	</head>

	<body>
		<div class="centerMain" style="margin-top: 50px;">
			<div class="mt10 ui-form">
				<div class="ui-form-item" style="line-height:44px;padding-left: 20px;float:left;">
					快递单号
				</div>
				<div class="ui-form-item" style="float:right;padding-top:10px;padding-right:20px;" id="scanQRCode">
					<img src="/wx/images/sm-ico.png" alt="alt" style="width:24px;z-index:999;" title="title" id="scanQRCode" />
				</div>
				<div class="ui-form-item" style="line-height:44px;padding-left: 20px;text-align:right;margin-right: 50px;">
					<input class="w300" style="text-align:right;width:60%;padding-right:10px;padding-left:0px" type="text" id="SenderMobile" name="SenderMobile" placeholder="请输入单号" value="#(BILLNO??'')">
				</div>
			</div>
			<div class="ui-btn-wrap mt20 ui-form">
				<input id="Submit1" type="button" class="ui-btn-lg ui-btn-success" value="查询" />
			</div>
			#if(HIS!=NULL) #if(HIS.size()!=0) #for(x:HIS) #if(for.index == 0 )
			<div class="ui-form">
				<div class="ui-form-item" style="float:left;padding: 20px 0px 0px 20px;background-repeat:initial;z-index:100;">
					<img src="/wx/images/logistics-icon-current.png" alt="alt" style="width:20px;" title="title" />
				</div>
				<div class="ui-form-item" style="line-height:24px;padding: 20px;padding-bottom:0px">
					<ul style="font-family: 微软雅黑;font-size: 16px;color: #0cba9f;border-left: 1px solid #dedede;margin-left:10px;padding-left:20px;">
						<lable style= "word-break: break-all;font-size: 14px;line-height: 20px;">
							#if(session.BNORDER) #(x.HIS_CONTENT) #else #(x.HISCONTENT) #end
						</lable><br/>
						<lable style="padding-top: 5px;">
							#if(session.BNORDER) #(x.TIME) #else #(x.OPERATE_TIME) #end
						</lable>
					</ul>
				</div>
			</div>
			#else
			<div class="ui-form">
				<div class="ui-form-item " style="float:left;padding: 20px 0px 0px 20px;background-repeat:initial;z-index:100;">
					<img src="/wx/images/logistics-icon.png" alt="alt" style="width:20px;" title="title" />
				</div>
				<div class="ui-form-item" style="line-height:24px;padding: 20px;padding-bottom:0px">
					<ul style="font-family: 微软雅黑;font-size: 16px;color: #0cba9f;border-left: 1px solid #dedede;margin-left:10px;padding-left:20px;padding-top:20px;margin-top:-20px;">
						<lable style= "word-break: break-all;font-size: 14px;line-height: 20px;">#if(session.BNORDER) #(x.HIS_CONTENT) #else #(x.HISCONTENT) #end
						</lable><br/>
						<lable style="padding-top: 5px;">#if(session.BNORDER) #(x.TIME) #else #(x.OPERATE_TIME) #end
						</lable>
					</ul>
				</div>
			</div>
			#end #end #else #if(BILLNO != null) 
			<script type="text/javascript">
				//alert('系统无此订单');
			</script>
			 #end #end #else #if(BILLNO != null)
			 <script type="text/javascript">
				//alert('系统无此订单');
			</script>
			 #end #end
		</div>
		<div class="clear"></div>
		<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
		<script type="text/javascript">
			wx.config({
				debug: false,
				appId: '#(appId)',
				timestamp: '#(timestamp)',
				nonceStr: '#(nonceStr)',
				signature: '#(signature)',
				jsApiList: [
					'scanQRCode'
				]
			});
			$("#scanQRCode").bind("click", function() {
				wx.scanQRCode({
					// 默认为0，扫描结果由微信处理，1则直接返回扫描结果
					needResult: 1,
					desc: 'scanQRCode desc',
					success: function(res) {
						//扫码后获取结果参数赋值给Input
						var url = res.resultStr;
                    //商品条形码，取","后面的
                        if(url.indexOf(",")>=0){
	                        	var tempArray = url.split(',');
	                        var tempNum = tempArray[1];
						    window.location.href = "/wxorder/serBillHis?ORDER_NO=" + tempNum + "&appid=#(session.appid)";
						}
					}
				});
			});
			//启动icheck
			$("#Submit1").click(function() {
				var orderNo = $("#SenderMobile").val();
				window.location.href = "/wxorder/serBillHis?ORDER_NO=" + orderNo + "&appid=#(session.appid)";
			});
		</script>
		<script src="/wx/bn/js/jquery.min.js"></script>
		<script src="/wx/bn/js/city-picker.data.js"></script>
		<script src="/wx/bn/js/city-picker.js"></script>
		<script src="/wx/bn/js/order.js"></script>
		<script src="/wx/bn/js/selectUi.js"></script>
		<script src="/wx/bn/js/layer.js"></script>
	</body>

</html>
#end #@layout()